import 'dart:convert';

import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/emergency_event_list_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/emergency_event_list_entity.g.dart';

@JsonSerializable()
class EmergencyEventListEntity extends ChoiceBean{

	EmergencyEventListEntity();

	factory EmergencyEventListEntity.fromJson(Map<String, dynamic> json) => $EmergencyEventListEntityFromJson(json);
	String? accidentAnswerType = '';
	List<String>? accidentDevice = [];
	String? accidentDeviceName = '';
	String? accidentGrade = '';
	String? accidentGradeLabel = '';
	String? accidentName = '';
	String? accidentPlaceLatitude = '';
	String? accidentPlaceLongitude = '';
  /// 事故现场照片
	List<String> accidentScenePhotos = [];
	String? accidentStartDate = '';
	String? accidentType = '';
	String? accidentTypeLabel = '';
	String? answerPoliceId = '';
	String? answerPoliceName = '';
	String? callPoliceId = '';
	String? callPoliceName = '';
	String? callPolicePhone = '';
  List<dynamic>? chemicalType = [];
	String? chemicalTypeNameList = '';
	String? companyCode = '';
	String? createBy = '';
	String? createById = '';
	String? createDate = '';
	int? deathNum = 0;
  /// 正常-0 已删除-1
	String? deleted = '';
	String? handleState = '';
	String? handleStateLabel = '';
	String? id = '';
	int? minorWoundNum = 0;
	String? policeAnswerDate = '';
  /// 调度状态（0未调度，1已调度）
	String? schedulingStatus = '';
	int? seriousInjuryNum = 0;
	String? updateBy = '';
	String? updateById = '';
	String? updateDate = '';
  bool isChecked = false;
  /// 事故事件视频
  String? videoPath;
	Map<String, dynamic> toJson() => $EmergencyEventListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}

  @override
  String getId() {
    return id ?? '';
  }

  @override
  bool getIsChecked() {
    return isChecked;
  }

  @override
  String getShowName() {
   return accidentName ?? '';
  }

  @override
  setIsChecked(bool isChecked) {
    this.isChecked = isChecked;
  }
}

